package com.mail.portal.modular.controller;

import com.mail.portal.common.controller.BaseController;
import com.mail.portal.modular.service.IBannerService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 创建人： Shi Heng
 * 创建时间：2018-04-12 13:01
 * QQ：374696376
 * Description：
 */
@RestController
@RequestMapping("/portal")
public class PortalController extends BaseController {

    @Resource
    public IBannerService bannerService;

    /**
     * 获取所有Banner列表
     */
    @RequestMapping(value = "/banner/list")
    @ResponseBody
    public Object list(String condition) {
        List<Map<String, Object>> list = bannerService.list(condition);
        return list;
    }
}
